<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body class="bg4">

<!--导航-->
<nav th:replace="_fragments :: menu(0)" class="ui inverted attached segment m-shadow-small"></nav>
<!--中间-->
<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <!--        header-->
        <div class="ui top white-transform attached segment" style="border: 0">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h2 class="ui header" style="color: #78a6ff">搜索结果</h2>
                </div>
                <div class="right aligned column">
                    <div class="ui header m-inline-block" style="color: #ffe9f9">共
                        <h2 class="ui header m-inline-block" th:text="${pageInfo.total}" style="color: #d8fff8">2</h2> 篇
                    </div>
                </div>
            </div>
        </div>
        <div class="ui attached white-transform segment" style="border: 0">
            <div class="ui padded vertical segment m-padded-tb" th:each="blog : ${pageInfo.list}">
                <div class="ui mobile reversed stackable grid">
                    <div class="eleven wide column">
                        <h3 class="ui header"><a href="#" class="m-black" target="_blank"
                                                 th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.title}">浮躁时代的一点纯真</a>
                        </h3>
                        <br>
                        <p><a href="#" class="m-black" target="_blank" th:href="@{/blog/{id}(id=${blog.id})}"
                              th:text="${blog.description}">在十多年前的那个夜晚，星星闪烁着金黄色的微光</a></p>
                        <div class="ui grid m-padded-bottom-mini">
                            <div class="eleven wide column">
                                <div class="ui horizontal link list mini">
                                    <div class="item">
                                        <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4195665098,552692922&fm=26&gp=0.jpg"
                                             th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                        <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">ljk</a>
                                        </div>
                                    </div>
                                    <div class="item">
                                        <i class="calendar icon"></i><span class="ui middle aligned"
                                                                           th:text="${#dates.format(blog.updateTime, 'yyyy-MM-dd')}">2021-1-17</span>
                                    </div>
                                    <div class="item">
                                        <i class="eye icon"></i><span class="ui middle aligned" th:text="${blog.views}">1111</span>
                                    </div>
                                </div>
                            </div>
                            <div class="right aligned four wide column">
                                <a href="#" th:href="@{/types/{id}(id=${blog.type.id})}" target="_blank"
                                   class="ui gray label m-padded-tb-small" th:text="${blog.type.name}">分类</a>
                            </div>
                        </div>
                    </div>
                    <div class="five wide column">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                            <img src="https://images.unsplash.com/photo-1610990275491-54fc65bb732f?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=925&q=80"
                                 th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!--                中间底部-->
        <div class="ui bottom attached white-transform segment" style="border: 0">
            <div class="ui inverted divided stackable grid">
            </div>
        </div>
    </div>
</div>
<!--底部-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive"></footer>
<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<!--利用jQuery获取到菜单-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>
</body>
</html>